﻿using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using Webdiyer.AspNetCore;

namespace ZhongKeSite.Repository
{
    public interface IViewRepository<T> where T : class
    {
        T FirstOrDefault();
        T FirstOrDefault(Expression<Func<T, bool>> predicate);
        IEnumerable<T> GetList();
        IEnumerable<T> GetList(Expression<Func<T, bool>> predicate);
        int Count(Expression<Func<T, bool>> predicate);
        PagedList<T> GetPagedList(int pageIndex, int pageSize, Expression<Func<T, bool>> predicate);
       
    }
}
